<template>
	<view class="celebirty">
		<view class="celebirty-item" v-for="(item,index) in dataList" :key="index">
			<view class="item-hader">
				<view class="header-left">
					<view class="student">{{item.studentName}}</view>
					<view class="student-stars">
						<image src="../../static/imgs/stars.png" mode=""></image>
					</view>
				</view>
				<view class="header-right">
					<image class="trophy" src="../../static/imgs/trophy.png" mode=""></image>
				</view>
			</view>
			<view class="item-content">
				<view class="item-list">
					就业城市：<text class="item-text">{{item.workCity}}</text>
				</view>
				<view class="item-list">
					就业薪资：<text class="item-text item-active">{{item.salary}}</text>
				</view>
				<view class="item-list">
					来自班级：<text class="item-text">{{item.className}}</text>
				</view>
			</view>
			<view class="item-foot">
				<view class="foot-item">
					<image class="foot-bg" src="../../static/imgs/education.png" mode=""></image>
					<text class="foot-text">{{item.education}}</text>
				</view>
				<view class="foot-item">
					<image class="foot-bg" src="../../static/imgs/shezhao.png" mode=""></image>
					<text class="foot-text">{{item.wrokCity}}</text>
				</view>
				<view class="foot-item">
					<image class="foot-bg" src="../../static/imgs/education.png" mode=""></image>
					<text class="foot-text">{{item.studentAge}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			dataList:{
				type:Array,
				default:[]
			}
		}
	}
</script>

<style scoped>
	.celebirty{
		display: flex;
		flex-wrap: nowrap;
		margin-top: 36rpx;
	}
	.celebirty-item{
		width: 328rpx;
		height: 366rpx;
		background-color: #FFFFFF;
		border-radius: 20rpx;
		/* margin-right: 20rpx; */
		background: url('https://fawn.xuexiluxian.cn/api/profile/wechat/bgimg/fame-bg.png') no-repeat;
		background-size: cover;
		padding: 24rpx;
	}
	.item-hader{
		padding-top: 20rpx;
		display: flex;
		justify-content: space-around;
		align-items: center;
	}
	.student-stars image{
		width: 19rpx;
		height: 19rpx;
	}
	.trophy{
		width: 97rpx;
		height: 91rpx;
	}
	.item-content{
		padding-top: 20rpx;
		padding-left: 20rpx;
	}
	.item-list{
		width: 300rpx;
		height: 25rpx;
		font-size: 25rpx;
		font-weight: 400;
		color: #333333;
		line-height: 27rpx;
		padding-bottom: 20rpx;
	}
	.item-text{
		padding-left: 10rpx;
	}
	.item-active{
		color: #f00;
		font-size: 30rpx;
		font-weight: bold;
	}
	.item-foot{
		width: 103%;
		height: 104rpx;
		background: #006cff;
		display: flex;
		justify-content: space-around;
		border-radius: 0 0 20rpx 20rpx;
	}
	.foot-item{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.foot-bg{
		width: 22rpx;
		height: 20rpx;
	}
	.foot-text{
		font-size: 24rpx;
		font-weight: normal;
		color: #fff;
		line-height: 27rpx;
		margin-left: 20rpx;
	}
	.scroll-item{
		display: inline-block;
	}

</style>
